package com.lottery.material.service.portal.transaction.impl;

import com.lottery.material.dao.transaction.UserEarnRecordMapper;
import com.lottery.material.service.portal.transaction.UserEarnRecordService;
import com.lottery.material.util.Const;
import com.lottery.material.vo.portal.transaction.EarnRecordStatisticsVo;
import com.lottery.material.vo.portal.transaction.EarnRecordVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserEarnRecordServiceImpl implements UserEarnRecordService {
    @Autowired
    UserEarnRecordMapper userEarnRecordMapper ;

    /**
     * 个人收益列表
     * @Author 焦阳
     * @param map
     * @return
     */
    @Override
    public List<EarnRecordVo> findIncomeListByUserId(Map<String, Object> map) {
        map.put("queryType",Integer.parseInt(map.get("queryType").toString()));
        map.put("indexStart", Const.PORTAL_PAGE*(Integer.parseInt(map.get("page").toString())-1));
        map.put("pageTotal",Const.PORTAL_PAGE);
        return userEarnRecordMapper.findIncomeListByUserId(map);
    }

}
